<nav role="navigation" class="navbar navbar-default navbar-static-top">
  <div class="container-fluid">
    <div class="navbar-header">
      <button type="button" data-toggle="collapse" data-target=".navbar-collapse-top" class="navbar-toggle"><i class="fa fa-bars"></i></button>
      <a href="/" class="navbar-brand" title="一个给油猴/暴力猴 提供用户脚本的网站">油猴吧<span class="mode">{{#isDbg}}调试版 {{/isDbg}}{{#isDev}}开发版{{/isDev}}</span></a>
    </div>
    <div class="navbar-collapse navbar-collapse-top collapse">
      <ul class="nav navbar-nav navbar-right">
        <li><a href="/" title="脚本列表"><span class="visible-xs-inline"><i class="fa fa-file-code-o"></i> </span>脚本列表</a></li>
        <li><a href="/?library=true" title="脚本库"><span class="visible-xs-inline"><i class="fa fa-file-excel-o"></i> </span>库</a></li>
        <li><a href="/groups" title="脚本标签"><span class="visible-xs-inline"><i class="fa fa-tag"></i> </span>标签</a></li>
        <li><a href="/forum"><span class="visible-xs-inline"><i class="fa fa-commenting"></i> </span>论坛</a></li>
        <li><a href="/users"><span class="visible-xs-inline"><i class="fa fa-user"></i> </span>用户列表</a></li>
        {{#authedUser}}
        {{#authedUser.isMod}}
        <li><a href="/mod" title="Moderation"><i class="fa fa-eye"></i><span class="visible-xs-inline"> Moderation</span></a></li>
        {{/authedUser.isMod}}
        {{#authedUser.isAdmin}}
        <li><a href="/admin" title="Administration"><i class="fa fa-coffee"></i><span class="visible-xs-inline"> Admin</span></a></li>
        {{/authedUser.isAdmin}}
        <!-- <li><a href="#" class="disabled"><i class="fa fa-envelope-o"></i> 0<span class="visible-xs-inline"> Unread Messages</span></a></li> -->
        <li><a href="{{authedUser.userPageUrl}}" title="个人中心">{{authedUser.name}}</a></li>
        <li><a href="/logout" title="注销"><span class="visible-xs-inline">注销</span><i class="fa fa-sign-out"></i></a></li>
        {{/authedUser}}
        {{^authedUser}}
        <li><a href="/login">注册 / 登录 <i class="fa fa-sign-in"></i></a></li>
        {{/authedUser}}
      </ul>
    </div>
  </div>
</nav>
{{> includes/headerReminders.html }}
